insertImage

public static EditorCommand insertImage(String imageSrc)

Returns a command that allows inserting an image with the given imageSrc in a WYSIWYG editor. If the imageSrc points to an invalid location, then image won't be inserted.

Parameters

imageSrc

the value of the src attribute of the IMG tag

Throws

when imageSrc is empty or blank